package fanshe;

import java.io.IOException;
import java.util.Arrays;

import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.NotFoundException;

public class demo04 {
	public static void test01() throws NotFoundException, IOException, CannotCompileException {
		ClassPool pool=ClassPool.getDefault();
		CtClass c=pool.get("fanshe.Emp");
		byte[] bytes=c.toBytecode();
		System.out.println(Arrays.toString(bytes));
		System.out.println(c.getName());
	}
	public static void test02() {
		ClassPool pool=ClassPool.getDefault();
	}
	public static void main(String[] args) throws NotFoundException, IOException, CannotCompileException {
		test01();
	}
}
